package net.starwifi.duobao.repository;


import net.starwifi.duobao.entity.Cart;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.Date;

/**
 * Created by Administrator on 2015/7/16.
 */
public interface CartRepository extends Repository<Cart,Long> {

    @Query(value = "delete from Cart cart where cart.modifyDate <= :expire")
    void evictExpired(Date evictExpired);

}
